package com.exadel;


/**
 * Created with IntelliJ IDEA.
 * User: alec
 * Date: 15.01.13
 * Time: 10:27
 * To change this template use File | Settings | File Templates.
 */
public class ChildVideo {
    private String name;
    private String rating;
    private String url;


    public String getName() {
        return name;
    }

    public String getRating() {
        return rating;
    }

    public String getUrl() {
        return url;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setRating(String rating) {
        this.rating = rating;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ChildVideo page = (ChildVideo) o;

        if (!name.equals(page.name)) return false;
        if (!rating.equals(page.rating)) return false;
        if (!url.equals(page.url)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = name.hashCode();
        result = 31 * result + rating.hashCode();
        result = 31 * result + url.hashCode();
        return result;
    }
}
